from models import *
from django.contrib import admin

class StaticUrlInline(admin.TabularInline):
    model = StaticUrl
    
class ModelUrlInline(admin.TabularInline):
    model = ModelUrl

class OnModelChangeAdmin(admin.ModelAdmin):
    inlines = [StaticUrlInline, ModelUrlInline]

admin.site.register(OnModelChange, OnModelChangeAdmin)